Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

eglplatform.h

Go to the documentation of this file.
00001 /* -*- mode: c; tab-width: 8; -*- */
00002 /* vi: set sw=4 ts=8: */
00003 /* Platform-specific types and definitions for egl.h */
00004 
00005 #ifndef __eglplatform_h_
00006 #define __eglplatform_h_
00007 
00008 /* Windows calling convention boilerplate */
00009 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
00010 #define WIN32_LEAN_AND_MEAN 1
00011 #include <windows.h>
00012 #endif
00013 
00014 #include <sys/types.h>
00015 
00016 /* Macros used in EGL function prototype declarations.
00017  *
00018  * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
00019  *
00020  * On Windows, EGLAPIENTRY can be defined like APIENTRY.
00021  * On most other platforms, it should be empty.
00022  */
00023 
00024 #ifndef EGLAPIENTRY
00025 #define EGLAPIENTRY __stdcall
00026 #endif
00027 
00028 #ifndef EGLAPI
00029 #ifdef __EGL_EXPORTS
00030 #    define EGLAPI __declspec(dllexport)
00031 #else
00032 #    define EGLAPI __declspec(dllimport)
00033 #endif
00034 #endif
00035 
00036 /* The types NativeDisplayType, NativeWindowType, and NativePixmapType
00037  * are aliases of window-system-dependent types, such as X Display * or
00038  * Windows Device Context. They must be defined in platform-specific
00039  * code below. The EGL-prefixed versions of Native*Type are the same
00040  * types, renamed in EGL 1.3 so all types in the API start with "EGL".
00041  */
00042 
00043 #define NativeDisplayType HDC
00044 #define NativeWindowType  HWND
00045 #define NativePixmapType  HBITMAP
00046 
00047 /* Unix (tentative)
00048     #include <X headers>
00049     typedef Display *NativeDisplayType;
00050       - or maybe, if encoding "hostname:display.head"
00051     typedef const char *NativeWindowType;
00052    etc.
00053  */
00054 
00055 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
00056 typedef NativeDisplayType EGLNativeDisplayType;
00057 typedef NativePixmapType EGLNativePixmapType;
00058 typedef NativeWindowType EGLNativeWindowType;
00059 
00060 #endif /* __eglplatform_h */

Generated on Thu Jan 31 11:29:22 2008 for ES Framework by doxygen 1.3.6